listitemmanager: Handle selection-changes properly
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Jun 2020 12:34:46 +0000 (08:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Jun 2020 12:36:11 +0000 (08:36 -0400)
commit71c29bfcff1f65b156250806e3b3520db8acabad
tree0da7b3345c1a7646538617ce4a235a04b1988bdc
parenta0c489048a412d8611b481c127374188899f7fe8
listitemmanager: Handle selection-changes properly

The selection model will only emit one of items-changed
or selection-changed, so when we handle an items-changed,
we must assume that selection state may have changed for
any of the newly added items.

This fixes lingering selection state in the visible range
if you change the sorting of the colors demo.

Fixes: #2827
gtk/gtklistitemmanager.c